package com.zhengshang.system.domain.vo;

/**
 * 路由显示信息
 */
public class MetaVo {


    /**
     * 设置该路由在侧边栏和面包屑中展示的英文名字
     */
    private String titleEn;


    /**
     * 设置该路由在侧边栏和面包屑中展示的中文名字
     */
    private String titleZh;

    /**
     * 设置该路由的图标，对应路径src/assets/icons/svg
     */
    private String icon;

    /**
     * 设置为true，则不会被 <keep-alive>缓存
     */
    private boolean noCache;

    public MetaVo() {
    }

    public MetaVo(String titleZh, String titleEn, String icon) {
        this.titleZh = titleZh;
        this.titleEn = titleEn;
        this.icon = icon;
    }

    public MetaVo(String titleZh, String titleEn, String icon, boolean noCache) {
        this.titleZh = titleZh;
        this.titleEn = titleEn;
        this.icon = icon;
        this.noCache = noCache;
    }

    public boolean isNoCache() {
        return noCache;
    }

    public void setNoCache(boolean noCache) {
        this.noCache = noCache;
    }

    public String getTitleEn() {
        return titleEn;
    }

    public void setTitleEn(String titleEn) {
        this.titleEn = titleEn;
    }

    public String getTitleZh() {
        return titleZh;
    }

    public void setTitleZh(String titleZh) {
        this.titleZh = titleZh;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
